<ion-view title="登录">
  <ion-nav-bar class="hide"></ion-nav-bar>
  <ion-content style="margin-top: -45px;" direction="y" overflow-scroll="false" scrollbar-y="false">
    <div class="login-img"><img src="img/login-bg.png"> </div>
    <div class="logo"><img src="img/logo.png"></div>
    <form name="loginForm" novalidate ng-submit="submitForm(loginForm.$valid)">
        <div class="list login-main">
              <label class="item item-input login-form">
                <input  class="login-user" type="text" ng-model="user.phone" name="phone" placeholder="用户名" required>
                <span ng-show="loginForm.phone.$error.required&& !loginForm.phone.$pristine&&submitted" class="hint-infor">用户名不能为空</span>
              </label>
              <label class="item item-input login-form">
                  <input class="login-code" type="password" ng-model="user.password" name="password" placeholder="密码" required>
                  <span ng-show="loginForm.password.$error.required&&!loginForm.phone.$pristine&&submitted" class="hint-infor">密码不能为空</span>
              </label>
        </div>
        <div class="p0 mlr32">
              <button class="button button-block button-positive login-button" ng-disabled="logindisbled">
                登录
              </button>
        </div>
    </form>
  </ion-content>
</ion-view>
